# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=paperkey
pkgver=1.6
pkgrel=0
pkgdesc="Archive OpenPGP keys on paper"
url="https://www.jabberwocky.com/software/paperkey/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-doc"
source="https://www.jabberwocky.com/software/paperkey/paperkey-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a07fc22bf56cd9524ecba61d1bf00102e6e97842e219682771187a2a2327c9daa885d457417bb2ea960f5ebd66bd711fa1d86687fda159647ff47980dee21b01  paperkey-1.6.tar.gz"
